import * as k8s from '@kubernetes/client-node';
import { onMount } from 'svelte';
let listFn
function init() {
  const kc = new k8s.KubeConfig();
  kc.loadFromDefault();

  const k8sApi = kc.makeApiClient(k8s.CoreV1Api);

   listFn = async () => await k8sApi.listNamespacedPod('kube-system');

}
onMount(() => {
init()
})


export default listFn
